package com.king.login.service;

import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.king.login.entity.Member;
import com.king.login.param.MemberParam;
import java.util.List;
import java.util.Map;

/**
 * <p>todo Member 服务接口</p>
 * @author: cuizx
 * @created: 2024-03-29 20:28:38
 * @version v1.0.1
 * @copyright: Copyright (c)  cuizx
 */
public interface MemberService extends IService<Member> {

    /**
     * <p>todo 批量删除</p>
     * @param: ids
     * @return: Member
     * @author: cuizx
     * @date: 2024-03-29 20:28:38
     * @version: 1.0.1
     * Modification History:
     * Date         Author          Version            Description
     * -----------------------------------------------------------
     * 2024-03-29 20:28:38    cuizx        v1.0.1             init
     */
    void deleteByIds(String ids);


      /**
     * <p>todo 查询所有</p>
     * @param: model
     * @return: Member
     * @author: cuizx
     * @date: 2024-03-29 20:28:38
     * @version: 1.0.1
     * Modification History:
     * Date         Author          Version            Description
     * -----------------------------------------------------------
     * 2024-03-29 20:28:38    cuizx        v1.0.1             init
     */
    List<Member> list(MemberParam model);

     /**
     * <p>todo 分页查询</p>
     * @param: model
     * @return: Member
     * @author: cuizx
     * @date: 2024-03-29 20:28:38
     * @version: 1.0.1
     * Modification History:
     * Date         Author          Version            Description
     * -----------------------------------------------------------
     * 2024-03-29 20:28:38    cuizx        v1.0.1             init
     */
    PageInfo<Member> listPage(MemberParam model);


  /**
   * <p>todo 用户名密码查询用户</p>
   * @param: userName
   * @param: password
   * @return: com.king.login.entity.Member
   * @author: cuizx
   * @date: 2024/3/29 21:12
   * @version: 1.0.1
   * Modification History:
   * Date         Author          Version            Description
   * -----------------------------------------------------------
   * 2024/3/29    cuizx        v1.0.1             init
   */
  Member getByUsernameAndPassword(String userName, String password);

  /**
   * <p>todo 查询用户信息</p>
   * @param: userId
   * @return: java.util.Map<java.lang.String, java.lang.Object>
   * @author: cuizx
   * @date: 2024/3/30 10:46
   * @version: 1.0.1
   * Modification History:
   * Date         Author          Version            Description
   * -----------------------------------------------------------
   * 2024/3/30    cuizx        v1.0.1             init
   */
  Map<String, Object> getUserInfo(int userId);


}


